/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MYData.Entity.SystemModels;

namespace MYData.Entity.DomainModels
{
    [Entity(TableCnName = "项目参与人信息表",TableName = "tb_project_participationer")]
    public partial class tb_project_participationer:BaseEntity
    {
        /// <summary>
       ///主键编号
       /// </summary>
       [Key]
       [Display(Name ="主键编号")]
       [MaxLength(64)]
       [Column(TypeName= "nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string participantsId { get; set; } = new Snowflake.Core.IdWorker(1, 1).NextId().ToString();

        /// <summary>
        ///参与人类别
        /// </summary>
        [Display(Name ="参与人类别")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int participantsType { get; set; }

       /// <summary>
       ///参与人姓名
       /// </summary>
       [Display(Name ="参与人姓名")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string participantsName { get; set; }

       /// <summary>
       ///所属单位
       /// </summary>
       [Display(Name ="所属单位")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string affiliatedUnit { get; set; }

       /// <summary>
       ///参与人现专业技术职务
       /// </summary>
       [Display(Name ="参与人现专业技术职务")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string participantsJob { get; set; }

       /// <summary>
       ///现参与项目数量
       /// </summary>
       [Display(Name ="现参与项目数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int projectQuantity { get; set; }

       /// <summary>
       ///责任分工
       /// </summary>
       [Display(Name ="责任分工")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string projectDivision { get; set; }

       /// <summary>
       ///投入本项目计划工作时间
       /// </summary>
       [Display(Name ="投入本项目计划工作时间")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int workingHours { get; set; }

       /// <summary>
       ///每月资助标准
       /// </summary>
       [Display(Name ="每月资助标准")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal salary { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? createDate { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? modifyDate { get; set; }

       /// <summary>
       ///软删除
       /// </summary>
       [Display(Name ="软删除")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? isDel { get; set; }
        [Display(Name = "项目外键")]
        [MaxLength(64)]
        [Column(TypeName = "nvarchar(64)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string projectId { get; set; }

    }
}